package study.day5.t10;

public class divCalculator implements Calculator {
    @Override
    public double calc(int num1, int num2) {
        if(num2!=0){
            return num1*1.0/num2;
        }else{
            return 0;
        }
    }
}
